package com.want.req.base;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PageReqDto<T> {
    @Min(value = 1,message = "页码不能小于1！")
    private Integer index;

    private Integer size;

    private String ascOrDesc;

    private List<String> properties;

    private T queryDto;

}
